package com.ssh.cp.iservice;

import java.io.File;
import java.util.List;

import com.ssh.cp.entity.FileEntity;


public interface IFileService {

	public String doFileSave(File uploadFlie,FileEntity fileEntity);
	
	public List<?> listFile(int recordsTotal,int recordsFiltered);
	
	public List<?> listFileByFileName(String search,int recordsTotal,int recordsFiltered);
	
	public List<?> listFileByFileName(int userid,String search,int recordsTotal,int recordsFiltered);
	
	public List<?> listFileByUserId(int userid, int start, int length);
	
	public List<?> listFileByClass(int userid, int classid,int start,int length);
	
	public List<?> listFileClass();
	
	public List<?> listShareFile(int start,int length);
	
	public List<?> listShareFile(String search,int start,int length);
	
	public List<?> listFileByLibrary(int userid, int libraryid, int start, int length);
	
	public File sharedFileDownload(int fileid);
	
	public boolean doFileUpdate(String oldfile,String newfile,FileEntity updateEntity);
	
	public File downloadAll(String userPath);
	
	public List<?> listAllUserFile(int userid);
	
	public int getCount();
	public int getCount(int userid);
	public int getShareFileNum();
}
